package com.example.kabaouser.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {
    SUCCESS(0, "成功"),
    PARAM_ERROR(1, "参数不正确"),
    SIGN_ERROR(20000,"sign校验失败"),
    SIGN_PARAM_CANNOT_EMPTY(20001,"sign和timestamp值不能为空"),
    USER_REGISTER_ERROR(30001,"用户注册失败"),

    SMS_TIME_LIMIT(40000,"频繁请求短信接口,请稍后再试"),
    SMS_SEND_FAILED(40001,"验证码发送失败"),
    SMS_CODE_CHECK_FAILED(40002,"验证码校验错误"),
    LOGIN_FAILED(60000,"登录失败"),
    CHECK_ACCESS_USER_TOKEN_IS_EMPTY(60000,"token值不能为空"),
    CHECK_ACCESS_USER_IS_EMPTY(60000,"用户不存在"),
    CHECK_ACCESS_USER_TIMEOUT(60000,"access_token超时间"),
    ;

    private int code;
    private String message;

    ResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
